package cn.itsource.pethome.org.domain;

import cn.itsource.pethome.basic.domain.Basedomain;
import lombok.Data;

import java.util.List;

@Data
public class Department extends Basedomain{
    //部门编号
    private String sn;
    //部门名称
    private String name;
    //部门状态44
    private Integer state;
    //部门经理
    private  Employee manager;
    //上级部门
    private  Department parent;
    //上级部门路径
    private String path;
    //装子部门
    private List<Department> children;

    public String getLabel(){
        return this.name;
    }
    public String getValue(){
        return String.valueOf(id);
    }


}
